home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
apps
/
41
/
proffsrc
/
defs.h
< prev
next >
Wrap
C/C++ Source or Header
|
1986-07-17
|
2KB
|
107 lines
/*
* defs.h
*
* #define rainbow - rainbow CP/M-86 version
* #define vms - vms version (predefined by VAX11C compiler)
* #define unix - unix version
* #define ATARIST - Atari St series
*/
/*
* Synonyms for ASCII control characters
*
*/
#define BACKSPACE 8
#define BEL 7
#define BELL 7
#define BLANK 32
#define CARRIAGE_RETURN 13
#define NEWLINE 10
#define RUBOUT 127
#define TAB 9
/*
* misc. definitions
*
*/
#define EOS 0
#define HUGE 30000
#define NO 0
#define OK 0
#define YES 1
#define FALSE 0
#define TRUE 1
#define FILENAMESIZE 50
#define MAXCHARS 20
#define MAXLINE 256
#define MAXTOK 80
#define ARB MAXLINE
#define MAXCARD MAXLINE-1
#define MAXNAME FILENAMESIZE
#define NCHARS 33
#define MAXOFILES 12
#define ARGFLAG '$'
#define INSIZE MAXLINE
#define MAXOUT 2*MAXLINE
#define MAXDEF 200
#define NFILES MAXOFILES-4
#define PAGENUM '#'
#define CURRENTDATE '%'
#define ESCAPE '@'
#define VESCAPE '$'
#define PAGEJECT 12 /* 12 is ASCII formfeed (control-L) */
#define PAGEWIDTH 65
#define PAGELEN 62
#define BUFSIZE 512 /* push back buffer */
/*
* lexical analyser values
*
* include lexical analyser return constants
* generated by ltb.
*
*/
#include "lextab.d" /* expended format & roff & runoff */
#define UNKNOWN 999
#define MACRO 0
#define NEGATED -1
#define LEFT 1
#define CENTER 2
#define RIGHT 3
/*
* structure definition for contents linked list
*
*/
struct clist { /* list struct for contents */
char level;
char *str;
int page;
struct clist *nextc;
};
#ifdef putchar
#undef putchar
#ifdef ATARIST
#define putchar(c) st_putc((c),poutput);
#else
#define putchar(c) putc((c),poutput);
#endif
#endif
/*
* The following definitions are required
* till they fix gemlib
*/
#ifdef ATARIST
#define printf st_printf
#define fprintf st_fprintf
#endif